/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package abstractmodel;

/**
 *
 * @author littlechild
 */
public interface IInfo extends java.io.Serializable{
    public final int USER=0;
    public final int BOOK=1;
    public final int ACCOUNT=2;
    public final int DETAIL=3;
    public final int ONLINE=4;
    public String[] getTitles();
    public InfoValue getValue(String title);

    public void setId(int id);
    public boolean setValue(String title,Object value);
    public int getid();
    /**
     * return the type of the info
     * @return
     *      return value for type USER is 0, BOOK is 1 and etc. (see the static constant)
     */
    public int getType();
}
